#ifndef TMSVRSETTINGSDLG_H
#define TMSVRSETTINGSDLG_H
//
#include <QDialog>
#include "ui_settings.h"
//
class CTmSvrSettingsDlg : public QDialog, public Ui::Dialog
{
Q_OBJECT
public:
	CTmSvrSettingsDlg( QWidget * parent = 0, Qt::WFlags f = 0 );
private slots:

	// load settings for current page:
	void loadSettings(int nPageNum);
	
	// save settings for current page:
	void saveSettings(int nPageNum);
	
	// called when the page is changed:
	void pageChanged(int nNewPage);
	
	// called when apply button is clicked:
	void applySettings();
	
	// called when reset button is clicked:
	void resetSettings();
	
private:
	// store the currently selected page index:
	quint8 m_nCurrentPageIndex;
	
	// return true if anything on the current page has changed from the default values.
	bool settingsChanged(int nPageNum);
};
#endif





